package com.ygqh.baby.ao;

public enum YgQuartzJob {
    /**
     * 定时任务
     */
    Balance(1, "Balance", "quartzJobHandler", "doPreToBalance", "预收入转可提现"),
    CancelAgent(2, "CancelAgent", "quartzJobHandler", "cancelAgent", "代理资格取消"),
    Supplier(3, "Supplier", "quartzJobHandler", "addSupplierReconciliation", "商家对账"),
    TrustoneAddOrder(4, "TrustoneAddOrder", "quartzJobHandler", "trustoneAddOrder", "保税仓订单推送"),
    ProductBook(5, "ProductBook", "quartzJobHandler", "tailPricePaidRemind", "活动单尾款任务"),
    Wholesaler(6, "Wholesaler", "quartzJobHandler", "executeWholesalerPrebillJob", "批发商结算出库单"),
    PromotionTag(7, "PromotionTag", "quartzJobHandler", "updatePromotionTag", "更新商品促销标记"),
    BargainInvitation(20, "Bargain", "quartzJobHandler", "sendBargainInvitation", "发送砍价最后一小时消息提醒"),
    BargainExpired(21, "Bargain", "quartzJobHandler", "updateBargainExpiredStatus", "更新砍价过期状态"),
    ProductSecond(8, "ProductSecond", "quartzJobHandler", "doProductSecondJob", "秒杀活动任务"),
    End(0, "", "", "", "");

    /**
     * 状态码
     */
    private Integer code;
    /**
     * 状态名称
     */
    private String jobGroup;
    private String springId;
    private String methodName;
    private String desc;

    YgQuartzJob(Integer code, String jobGroup, String springId, String methodName, String desc) {
        this.code = code;
        this.jobGroup = jobGroup;
        this.springId = springId;
        this.methodName = methodName;
        this.desc = desc;
    }

    public String getJobName(String param) {

        return this.name() + "_" + param;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getSpringId() {
        return springId;
    }

    public void setSpringId(String springId) {
        this.springId = springId;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


}
